using System;
using System.Collections.Generic;
using System.Text;

namespace ACS.Compiler.Tree.Impl
{
    public class TypeField : TreeBase
    {
        private string _fieldName;
        private TypeDeclarer _declarer;

        public override void MatchIdent(Ident ident)
        {
            _fieldName = ident.ToString();
        }

        public override void MatchTypeDeclarer(TypeDeclarer declarer)
        {
            _declarer = declarer;
        }

        public string FieldName
        {
            get { return _fieldName; }
        }

        public TypeDeclarer Declarer
        {
            get { return _declarer; }
        }


        public override TreeTags Tag
        {
            get { return TreeTags.TypeField; }
        }
    }
}
